package s07;

/**
 * @ClassName Demo08
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:25
 * @ModifyDate 2022/8/14 18:25
 * @Version 1.0
 */
public class Demo08 {
    public static void printName(String name, PersonBuilder pb) {
        System.out.println(pb.buildPerson(name).getName());
    }

    public static void main(String[] args) {
        printName("张三", Person::new);
    }
}
